using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class NetBridge : MonoBehaviour
{
    [SerializeField]
    string ip = "10.41.2.118";
    [SerializeField]
    int port = 8900;

    public void Awake()
    {
        NetManager.Instance.Awake();
    }

    public void Connecte()
    {
        ClientNetManager.Create(ip, port);
    }

    public void Update()
    {
        NetManager.Instance.Update();
    }

    public void OnDestroy()
    {
        NetManager.Instance.Destroy();
    }
}
